package org.mch.comm.db.utils;

import java.net.URL;
import java.sql.Connection;
import java.sql.DriverManager;

import com.mch.ar.core.DB;

public class MDao {
	private static URL url = MDao.class.getResource("/resource/ddata/mchutils.db");
	public final static DB db = DB.open("jdbc:sqlite:" + url.getFile());

	protected Connection getConn() throws Exception {
		Class.forName("org.sqlite.JDBC");
		Connection conn = DriverManager.getConnection("jdbc:sqlite:" + url.getFile());
		return conn;
	}

}
